cmake_minimum_required(VERSION 3.25)
set (app_name "ThreadPoolExample")
project(${app_name})

set(CMAKE_CXX_STANDARD 17)


# 添加源代码
aux_source_directory(./ SRC_FILES)

add_executable(${app_name} ${SRC_FILES})

if(CMAKE_SYSTEM_NAME MATCHES "Linux")
    target_link_libraries(${app_name} PUBLIC
            pthread)
    message("操作系统类型 = ${CMAKE_SYSTEM_NAME}")
ELSE()
    message("操作系统类型 未知")
endif()

# 调试
message("===【调试】===")




